<?php
class Gallery extends LilgalleryAppModel {
	var $name = 'Gallery';
	
	var $belongsTo = array(
		'Cover' => array(
			'className'		=> 'Lilgallery.Image',
			'foreign_key'	=> 'cover_id',
		)
	);
	var $hasMany = array(
		'Image' => array(
			'className'		=> 'Lilgallery.Image',
		)
	);
}
?>